package org.rainbowinverted.charging.common.core;


import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;

/**
 * @author huaiping
 */
public class DateTimeUtils {
    public static int diffOfMinutes(LocalDateTime start, LocalDateTime end) {
        return (int) ChronoUnit.MINUTES.between(start, end);
    }

    private DateTimeUtils() {}
}
